# coding=utf-8
import sys

# pip install pyqt5 -i https://pypi.tuna.tsinghua.edu.cn/simple
# pip install pyqt5-tools -i https://pypi.tuna.tsinghua.edu.cn/simple
# pip install PyQtWebEngine -i https://pypi.tuna.tsinghua.edu.cn/simple
# pip install pynput -i https://pypi.tuna.tsinghua.edu.cn/simple
# pip install pyautogui -i https://pypi.tuna.tsinghua.edu.cn/simple
# pip install time -i https://pypi.tuna.tsinghua.edu.cn/simple
# pip install selenium -i https://pypi.tuna.tsinghua.edu.cn/simple
# pip install yaml -i https://pypi.tuna.tsinghua.edu.cn/simple
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QApplication
from ui.ui_controller import UiController

if __name__ == "__main__":
    app = QApplication(sys.argv)
    app.setWindowIcon(QIcon('./configuration/favicon.ico'))
    ex = UiController(app)
    # 显示 sys.stderr111111

    ex.show_main()
    sys.stderr = sys.__stderr__
    # 安装自定义的错误处理函数
    sys.exit(app.exec_())
